import hasRole from './permission/hasRole'
import hasPermi from './permission/hasPermi'
import { App } from 'vue'

const install = function(app: App) {
  app.directive('hasRole', hasRole)
  app.directive('hasPermi', hasPermi)
}

// if (window.Vue) {
//   window.hasRole = hasRole
//   window.hasPermi = hasPermi
//   // eslint-disable-line
//   Vue.use(install)
// }
export default install
